Get Token Price
Gets the token price of the asset_out based in reference to the asset_in.
Request URL
https://api.euclidprotocol.com/api/v1/token/price
Curl
curl -X 'POST' \
'https://api.euclidprotocol.com/api/v1/token/price' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"asset_in": "usdt",
"asset_out": "nibi"
}'
Parameters
Field | Type | Description |
---|---|---|
asset_in | String | The identifier of the asset_in. |
asset_out | String | The identifier of the asset_out. |
Example Response
{
"amount": 1.0009282130745838
}